package com.aspose.cells.a.d;

public abstract class zeo extends zew {
   protected zes a;
   protected zeb b;
   private com.aspose.cells.b.a.b.a.zi d;

   public zeo(zdh var1) throws Exception {
      super(var1, false);
      this.a = new zes(var1);
      this.b = new zeb(this.e, this.a, this);
      this.d = this.e.i().b().b().b();
   }

   public void b(zeg var1) throws Exception {
      var1.a("/Type", "/Pattern");
      var1.a("/PatternType", this.c());
   }

   public static zeo a(com.aspose.cells.b.a.b.zc var0, zdh var1) throws Exception {
      com.aspose.cells.b.a.b.zx var2 = (com.aspose.cells.b.a.b.zx)com.aspose.cells.b.a.zl.a(var0, com.aspose.cells.b.a.b.zx.class);
      if (var2 != null) {
         return new zey(var1, var2);
      } else {
         com.aspose.cells.b.a.b.a.zg var3 = (com.aspose.cells.b.a.b.a.zg)com.aspose.cells.b.a.zl.a(var0, com.aspose.cells.b.a.b.a.zg.class);
         return var3 != null ? new zey(var1, var3) : null;
      }
   }

   protected void c(zeg var1) throws Exception {
      com.aspose.cells.b.a.b.a.zi var2;
      if (this.d() == null) {
         float var3 = (float)zaj.c(1.0D);
         var2 = new com.aspose.cells.b.a.b.a.zi(var3, 0.0F, 0.0F, var3, 0.0F, 0.0F);
      } else {
         var2 = this.d().b();
         var2.a((com.aspose.cells.b.a.b.a.zi)this.d, 1);
      }

      StringBuilder var4 = new StringBuilder(64);
      var4.append("/Matrix");
      zfc.a(var2.e(), var4);
      var1.a(com.aspose.cells.b.a.zr.a(var4));
   }

   protected abstract int c();

   protected abstract com.aspose.cells.b.a.b.a.zi d();

   public int e_() {
      return 2;
   }
}
